﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using KL.UFrame.Data.Entities;

namespace KL.UFrame.Data.Models
{
    public class SubscribingModel
    {
        [Key]
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "Id")]
        public int Id { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "演出Id")]
        public int PerformanceId { get; set; }

        [Display(Name = "演出")]
        public string Performance { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50,ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name = "微信Open Id")]
        public string WechatOpenId { get; set; }

        [StringLength(50,ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name = " 微信昵称")]
        public string WecharNickname { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "通知状态")]
        public bool Noticed { get; set; }

        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }
    }
}